	
	<div id="l-map"></div>
	<div id="l-info"   style="display:none" >
		 <div  class="right-close" ng-click="hideMapInfo()" ></div>
		 <!--<div class="info-u block-active"  ng-click="go('/shop','fade')" >-->
		 <div class="info-u">
		 		<div id="shop-name"></div>
				<div id="shop-address"></div>
				<div id="shop-phone"></div>
		 </div>
		 <div class="info-d ub" >
		 			<a id="lead-phone"  style="position:absolute;color:red;width:50%;display:block;height:42px;z-index:100"></a>
		 			<div  class="block-active ub-f1 "  style="border-right:1px solid silver" >
		 			<div  class="icon-my-phone">
		 			
					</div>
					<div >
						打电话
					</div>
					</div>
					
				<div id="lead-address" class="block-active ub-f1">
					<div class="icon-my-lead"  >
		 			
					</div>
					<div>
						导航
					</div>
				</div>
		 </div>
		
		<input type="hidden" id="addid" value="">
			
	</div>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">

	function getAdd(long,lat,address){
		for( var o in address){
			if(typeof(address[o].longitude)=="string"){
				address[o].longitude = Number(address[o].longitude);
			}
			if(typeof(address[o].latitude)=="string"){
				address[o].latitude = Number(address[o].latitude);
			}
			if(address[o].longitude===long&&address[o].latitude===lat){
				return address[o];
			}
		}
	}
	function getAddById(id,address){
		for( var o in address){
			if(address[o].id==id){
				return address[o];
			}
		}
	}
	function addEvent(address){
		$("#lead-address").click(function(){
				var id = $("#addid").val();
				var add = getAddById(id,address);
				var url = "http://api.map.baidu.com/marker?location=";
				var location = add.latitude+","+add.longitude;
			//	var location = '23.477631,113.173263';
				var content='地址：'+add.address;
				var title = add.storeName;
				//console.info(url+location+"&title="+title+"&content="+content+"&output=html&src=chunle");
				window.location.href = url+location+"&title="+title+"&content="+content+"&output=html&src=chunle";
			})
	}
	
	function removeEvent(){
		$("#l-info").removeEventListener("click");
	}
	function showShop(add){	
		//var content = '<div style="margin:0;line-height:20px;padding:2px;">店铺名：'+add.storeName+'<br/>地址：'+add.address+'<br/>电话：'+add.tel+'</div><input type="hidden" id="addid" value="'+add.id+'"></input>';
		$("#shop-name").html(add.storeName);
		$("#shop-address").html("地址："+add.address);
		$("#shop-phone").html("电话："+add.tel);
		$("#lead-phone").attr("href","tel:"+add.tel);
		$("#addid").val(add.id);
		
		//$("#l-info").append(content);
		$("#l-info").show();
	}
	
//	$("lead-address").click(function()
//	{
//			var url = "http://api.map.baidu.com/marker?location=";
//			var location = '23.477631,113.173263';
//			var content='地址：广州市白云区云城东路118号A10';
//			var title = '纯乐自造-迈家厨房-白云万达店';
//			//console.info(url+location+"&title="+title+"&content="+content+"&output=html");
//			window.location.href = url+location+"&title="+title+"&content="+content+"&output=html";
//	});
	//跳转地图

		
</script>
